/*
 * cw_err.h
 *
 *  Created on: 2010-05-19
 *      Author: justin
 *
 *  This file maps a set of return
 *  values to errors within the program.
 */

#ifndef CW_ERR_H_
#define CW_ERR_H_


#endif /* CW_ERR_H_ */

/* LOGIN ERRORS */
#define CW_ERROR_OK 			0x00 			/* OK; No error */
#define CW_ERROR_INVALLOG		0x01			/* Invalid login or password */

/* GENERAL COMMAND ERRORS */
#define CW_ERROR_EXPIRED		0x02			/* Timestamp has expired */
#define CW_ERROR_SESSION		0x03			/* SessionID is invalid */
#define CW_ERROR_UNAUTH			0x04			/* Bad credentials; unauthorized */

/* FRIEND ERRORS */
#define CW_ERROR_NOEXIST		0x05			/* Username does not exist */

/* CREATE/DELETE ERRORS */
#define CW_ERROR_USREXIST		0x06			/* User already exists */
#define CW_ERROR_INVALCRE		0x07			/* Created name or password is invalid */

/* Chat/IM ERRORS */
#define CW_ERROR_INVALCHN		0x08			/* Invalid Channel ID */
